<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link rel="stylesheet" href="/webjars/bootstrap/3.3.5/css/bootstrap.min.css" />
    <script src="/webjars/jquery/3.1.1/jquery.js"></script>
    <script src="/webjars/bootstrap/3.3.5/js/bootstrap.js"></script>

</head>
<body>
<div class="container"><br/>
    <div class="alert alert-success">
        <a href="#" class="close" data-dismiss="alert" aria-label="close">×</a>
        <h3>index首页</h3>Hello, <strong>springboot and bootstrap！！！</strong>

    </div>
    <table>
        <tr>
            <th>编号</th>
            <th>单位名称</th>
            <th>单位</th>
            <th>操作[<a th:href="@{/add}" style="color: red">添加</a>]</th>
        </tr>
        <tr th:each="l : ${list}">
            <td th:text="${l.id}"></td>
            <td th:text="${l.name}"></td>
            <td th:text="${l.uid}"></td>
            <td th:text="${l.phone}"></td>
            <td th:text="${l.img}"></td>
            <td th:text="${l.cdate}"></td>
        </tr>
    </table>
</div>
</body>
</html>